Developer --> Technical Publications
PATHMac OS 8 Developer Documentation > Human Interface Toolbox > Control Manager >

Mac OS 8 Control Manager Reference


Bevel Button Menu Constants

You can pass one or more bevel button menu constants in the high byte of the minimumValue parameter of NewControl to create a bevel button with a menu of a certain behavior. Bevel buttons with menus have two values: the value of the button and the value of the menu. You can specify the direction of the pop-up menu arrow (down or right) by using the kControlBevelButtonMenuOnRight bevel button variant. The bevel button menu constants are available with Appearance Manager 1.0 and later.

enum{
    kControlBehaviorCommandMenu     = 0x2000,
    kControlBehaviorMultiValueMenu  = 0x4000
};

Constant descriptions

kControlBehaviorCommandMenu
If this bit is set, the menu contains commands, not choices, and should not be marked with a checkmark. If this bit is set, it overrides the kControlBehaviorMultiValueMenu bit. This constant is only available with Appearance 1.0.1 and later.
kControlBehaviorMultiValueMenu
If this bit is set, the menus are multi-valued. The bevel button does not maintain the menu value as it normally would (requiring that only one item is selected at a time). This allows the user to toggle entries in a menu and have multiple items checked. In this mode, the menu value accessed with the kControlMenuLastValueTag will return the value of the last menu item selected.

© 1998 Apple Computer, Inc. – (Last Updated 19 Nov 98)

Previous | Back Up One Level | Next |